package com.glb.gilibuy.service;

import com.glb.gilibuy.entity.Product;
import com.glb.gilibuy.entity.ProductCategory;
import com.glb.gilibuy.web.vo.ProductCategoryVO;

import java.util.List;

/**
 * @Description:
 * @Author: Yingtian qian
 * @Date: 2021/8/4 10:56
 */
public interface ProductCategoryService {
    /**
     * @Description: 基础Dao方法：根据分类id获取单个分类信息
     * @param:
     * @return:
     */
    ProductCategory selectCategoryByCategoryId(String categoryId);

    /**
     * @Description: 复合Dao方法：获取全部商品分类
     * @param:
     * @return:
     */
    List<ProductCategoryVO> selectAllCategories();

    int addCategory(ProductCategory productCategory);
}
